package behavior.command;

/**
 * 是一种数据驱动的设计模式,请求以命令的形式包裹在对象中，并传给调用对象。
 * @author houkai
 *
 */
public class CommandPatternDemo {
	public static void main(String[] args) {
		OrderList order = new OrderList();
		
		order.addOrder(new Do1(new SomeThing()));
		order.addOrder(new Do2(new SomeThing()));
		order.addOrder(new Do1(new SomeThing()));
		
		order.executeOrder();
		
	}
}
